package com.fcscs.cservice.ws.client.commonservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.commonservice.GetAdvertisementsRequest;
import com.fcscs.cservice.ws.schema.commonservice.GetAdvertisementsResponse;

public class GetAdvertisementClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetAdvertisementClient.class);

	public GetAdvertisementsResponse test(GetAdvertisementsRequest req) {
		GetAdvertisementsResponse resp = (GetAdvertisementsResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv advertisement list size: " + resp.getAdvertisementList().size() == null);
		return resp;
	}
}
